package com.fengmi.goods.controller;


import com.fengmi.goods.entity.MallGoodsBrand;
import com.fengmi.goods.service.IMallGoodsBrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 品牌表 前端控制器
 * </p>
 *
 * @author zhuxm
 * @since 2022-03-02
 */
@RestController
//@CrossOrigin(origins = "www.fengmi.com")
@RequestMapping("/goods/brand")
public class MallGoodsBrandController {

    @Autowired
    private IMallGoodsBrandService goodsBrandService;

    @RequestMapping("findAll")
    public List<MallGoodsBrand> findAll(){

        return goodsBrandService.list();
    }

}
